package org.goodsl.deploymap

/**
 * Created with IntelliJ IDEA.
 * User: Simon Xiao
 * Date: 12-12-20
 * Time: 上午11:49
 * Copyright goodsl.org 2012~2020
 */
class DeployedService extends SysElement{
    Service service
    long port = -1

    public String getShowName(){
        String showName = service.title
        if (this.name!=null && this.name.length()>0)
            showName += "/${this.name}"
        if (port > 0)
            showName += ":$port"

        return showName
    }
    public String getDeployName(){
        String deployName = service.name
        if (this.name!=null && this.name.length()>0)
            deployName += "_${this.name}"

        return deployName
    }

    public boolean getIsDatabase(){
        return service.isDatabase;
    }
    public boolean getIsPublicAccess(){
        return service.isPublicAccess;
    }
    public getIsIntroduced(){
        return service.isIntroduced
    }


}
